/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2024-05-16
 * Time: 18:51
 */

/*class washmaincine{
    public String brand;
    public String type;
    public double weight;
    public double length;
    public double width;
    public double height;
    public String color;

    public void washClothes(){
        System.out.println("洗衣功能");
    }
    public void dryclothes(){
        System.out.println("脱水功能");
    }
    public void setTime(){
        System.out.println("定时功能");
    }
}*/

class dog{
    public String name;
    public String color;
    public int age;

    public void barks(){
        System.out.println(name + ":汪汪汪~~~");
    }

    public void wag(){
        System.out.println(name + ":摇尾巴~~~");
    }
}




/*class student{
    public String name;
    public String sex;
    public int age;
    public double score;

    public void doclass(){
        System.out.println(name + ":来上课");
    }
    public void dohome(){
        System.out.println(name + ":写作业");
    }
    public void doexam(){
        System.out.println(name + ":要考试");
    }
}*/




public class Date {
    public int year;
    public int month;
    public int day;

    public void setDay(int year, int month, int day){
        this.year = year;
        this.month = month;
        this.day = day;
    }

    public void printDate(){
        System.out.println(year + "/" + month + "/" + day);
    }

    public static void main(String[] args) {
        Date d1 = new Date();
        Date d2 = new Date();
        Date d3 = new Date();

        d1.setDay(2020,9,20);
        d2.setDay(2020,9,20);
        d3.setDay(2020,9,20);

        d1.printDate();
        d2.printDate();
        d3.printDate();
    }












    public static void main1(String[] args){
        dog dogh = new dog();
        System.out.println(dogh.name);
        System.out.println(dogh.color);
        System.out.println(dogh.age);
    }
}
